package modele;

import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.math.Vector2;

public abstract class GameElement {
	
	private World world;
	private Vector2 position;
		
	public GameElement(Vector2 v,World w)
	{
		this.position=v;
		this.world=w;
	}
	
	public Vector2 getPosition(){
		return this.position;
	}
	
	public void update(float depX, float depY)
	{
		position.add(depX, depY);
	}
	
	public void setPosition(Vector2 nouvPosition)
	{
		position.set(nouvPosition);
	}
	
	public void setPosition(float posX, float posY)
	{
		position.set(posX,posY);
	}
	
	public abstract Texture getTexture();
	
	public abstract float getWidth();
	
	public abstract float getHeight();


}
